package di.scanner.mongo.core;

import java.util.Properties;

import com.mongodb.MongoClient;
import com.mongodb.MongoClientURI;
import di.scanner.utils.PropertiesUtil;

public class DataSourceLog {
	
	private final static MongoClientURI mongoClientURI;
	
	static{
		Properties properties = PropertiesUtil.getProp();
		mongoClientURI = new MongoClientURI(properties.getProperty("mongo.db.uri"));
	}
	
	public static MongoClient getClient(){
		return new MongoClient(mongoClientURI);
	}
}
